<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ page import="com.roadmap.common.RdcResourceBundle"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
String user_req_id = (String)request.getParameter(ActionConst.Aspirant_Id_In_Request);
if(user_req_id == null){
	user_req_id = user_ssn_id;
}
String parentEntryId = (String)request.getParameter(ActionConst.Item_Id_In_Request);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> 
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/life.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/widget.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="dwr/util.js"></script>
<script type="text/javascript" src="dwr/engine.js"></script>
<script type="text/javascript" src="dwr/interface/RdcAjax.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<script type="text/javascript" src="res/js/component.js"></script>
<script type="text/javascript" src="res/js/widget.js"></script>
<title> 评论 | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>
  
  <body>
    <!-- define header including menus and logo -->
	<jsp:include page="/admin/myheader.jsp"></jsp:include>
	
	<!-- main body -->
	<div class="mainbody">
		<div class="manager">
			<jsp:include page="/admin/life/nav_btns.jsp"/>
			<div class="middle-part">
				<div class="float-left"><span class="doubleGreat">&lt;&lt;</span>&nbsp;<a href="exec.do?act=all&uid=<%=user_req_id %>&id=<%=parentEntryId %>">同任务的其他执行记录</a></div>
				<div class="section"><div class="exec-body">
					<div class="exec-title">
						<div class="exec-desp">
							<span class="exec-time">执行日期：<bean:write format="yyyy-MM-dd" name="parentEntry" property="executeDate"/></span> 
							<span class="exec-time">占任务比重： <bean:write name="parentEntry" property="proportionOfTask"/>%</span>
							<span class="exec-time">执行时长：<bean:write name="parentEntry" property="executeTimeLength"/></span>
						</div>
						<div class="exec-desp">
							<span class="exec-time">创建于<bean:write format="yyyy-MM-dd HH:mm:ss" name="parentEntry" property="createdTime"/></span>
							<span class="exec-time">更新于<bean:write format="yyyy-MM-dd HH:mm:ss" name="parentEntry" property="updatedTime"/></span>
						</div>
					</div>
					<div class="exec-content"><bean:write name="parentEntry" property="content"/></div>
				</div></div>
				<jsp:include page="/pagelet/commentPagelet.jsp"/>
			</div>
			
			<div class="right-part"></div>
				
			<div class="clear-div"></div>
		
		</div>
		<jsp:include page="/res/jsp/footer.jsp"/>
	</div>
	
	<script type="text/javascript">
		var commentUtil = null;
		window.onload = function(){
			commentUtil = new CommentUtil("Execution", "<%=parentEntryId%>", "<%=user_ssn_id%>", "<%=user_req_id%>");
		}
	</script>
  </body>
</html>
